% initializing signal and "root" template
step = .1;
[x signal] = signal9(step);
[templateX template] = template1(step);

% creating generated 
generatedFunctions{1} = @(x)1;
generatedFunctions{2} = @(x)x;
generatedFunctions{3} = @(x)abs(x).^2;
generatedFunctions{4} = @(x)abs(x).^3;
generatedFunctions{5} = @(x)abs(x).^4;
generatedFunctions{6} = @(x)abs(x).^5;
generatedFunctions{7} = @(x)abs(x).^6;

[P, ~, e]=KunchenkoNew(signal, template, generatedFunctions);
scaled_e = kunchenkoEffectogramScaling(x, e, templateX);
